package com.huffman.smart_picture.domain.enums;

import lombok.Getter;

/**
 * @author DengLin
 * @title
 * @date 2025/5/10
 */
@Getter
public enum FavoriteEnum {

    DO(1),
    UNDO(-1);

    private final Integer status;

    FavoriteEnum(Integer status) {
        this.status = status;
    }

    public static FavoriteEnum getFavoriteEnum(Integer status){
        if (DO.getStatus().equals(status)){
            return DO;
        }
        if (UNDO.getStatus().equals(status)){
            return UNDO;
        }
        return null;
    }
}
